www.gusucode.com > VC++ Oracle数据库进行大数据查询-源码程序 > VC++ Oracle数据库进行大数据查询-源码程序/code/注意事项.txt

    1,先创建mytable表:
create table mytable(empno, ename, job, mgr, sal, comm, deptno) as select empno, ename, job, mgr, sal, comm, deptno from emp;

insert into mytable select *from mytable;



2,登录system/manager,给scott授权:
grant create any table,create any procedure to scott;

解释:oracle在过程中权限有特殊的控制,必须要有独立的权限,如要CREATE TABLE语句,就要有独立的CREATE TABLE权限,必须GRANT CREATE TABLE TO USEr